﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LotteryVote.Entity;

namespace LotteryVote.Logic.Exceptions
{
    /// <summary>
    /// 错误角色
    /// </summary>
    public class InvalidRoleException : Exception
    {
        public SystemRole ExpectedRole { get; set; }
        public SystemRole ActualRole { get; set; }

        public InvalidRoleException(SystemRole expected, SystemRole actual)
            : base("Not expected role!")
        {
            ExpectedRole = expected;
            ActualRole = actual;
        }
    }
}
